<div class="form">
<?php $form = $this
	->beginWidget('CActiveForm',
		array(
			'id' => 'account-receivable-form',
			'enableAjaxValidation' => false,
		));
?>

	<p class="note">带 <span class="required">*</span> 的是必填的哦！</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model, 'projectId'); ?>
		<?php $this->widget('widgets.project.JProjectSelector',
				array(
					'model' => $model,
					'attribute' => 'projectId',
				));
		?>
		<?php echo $form->error($model, 'projectId'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model, 'token'); ?>
		<?php echo $form->textField($model, 'token', array(
				'size' => 60,
				'maxlength' => 255
			)); ?>
		<?php echo $form->error($model, 'token'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model, 'receiveDate'); ?>
		<?php $this
			->widget('zii.widgets.jui.CJuiDatePicker',
				array(
					'model' => $model,
					'attribute' => 'receiveDate',
				));
		?>
		<?php echo $form->error($model, 'receiveDate'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model, 'price'); ?>
		<?php echo $form->textField($model, 'price', array(
				'size' => 16,
				'maxlength' => 16
			)); ?>
		<?php echo $form->error($model, 'price'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model, 'note'); ?>
		<?php echo $form->textField($model, 'note', array(
				'size' => 60,
				'maxlength' => 255
			)); ?>
		<?php echo $form->error($model, 'note'); ?>
	</div>

	<?php if (!AccessControl::isAltMode()) { ?>
	<div class="row">
		<?php echo $form->labelEx($model, 'altMode'); ?>
		<?php echo $form->checkBox($model, 'altMode'); ?>
		<?php echo $form->error($model, 'altMode'); ?>
	</div>
	<?php } ?>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? '新建' : '保存'); ?>
	</div>
<?php $this->endWidget(); ?>

</div><!-- form -->
